const TokenKey = 'token'
const UserId = 'userid'
const CookieKey = 'cookie'
export function getToken() {
  return uni.getStorageSync(TokenKey)
}
export function getUserid() {
  return uni.getStorageSync(UserId)
}
export function setToken(token) {
  return uni.setStorageSync(TokenKey, token)
}
export function setUserid(userid) {
  return uni.setStorageSync(UserId, userid)
}
export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}
export function removeUserid() {
  return uni.removeStorageSync(UserId)
}
export function getCookie() {
  return uni.getStorageSync(CookieKey)
}
export function setCookie(cookie) {
  return uni.setStorageSync(CookieKey, cookie)
}
export function removeCookie() {
  return uni.removeStorageSync(CookieKey)
}